.class Lcom/example/m6wmr/IntegralExchangeGift2$MyAdapter;
.super Landroid/widget/BaseAdapter;
.source "IntegralExchangeGift2.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/example/m6wmr/IntegralExchangeGift2;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "MyAdapter"
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/m6wmr/IntegralExchangeGift2;


# direct methods
.method private constructor <init>(Lcom/example/m6wmr/IntegralExchangeGift2;)V
    .locals 0

    .prologue
    .line 672
    iput-object p1, p0, Lcom/example/m6wmr/IntegralExchangeGift2$MyAdapter;->this$0:Lcom/example/m6wmr/IntegralExchangeGift2;

    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    return-void
.end method

.method synthetic constructor <init>(Lcom/example/m6wmr/IntegralExchangeGift2;Lcom/example/m6wmr/IntegralExchangeGift2$MyAdapter;)V
    .locals 0

    .prologue
    .line 672
    invoke-direct {p0, p1}, Lcom/example/m6wmr/IntegralExchangeGift2$MyAdapter;-><init>(Lcom/example/m6wmr/IntegralExchangeGift2;)V

    return-void
.end method

.method static synthetic access$1(Lcom/example/m6wmr/IntegralExchangeGift2$MyAdapter;)Lcom/example/m6wmr/IntegralExchangeGift2;
    .locals 1

    .prologue
    .line 672
    iget-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift2$MyAdapter;->this$0:Lcom/example/m6wmr/IntegralExchangeGift2;

    return-object v0
.end method


# virtual methods
.method public getCount()I
    .locals 1

    .prologue
    .line 677
    iget-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift2$MyAdapter;->this$0:Lcom/example/m6wmr/IntegralExchangeGift2;

    # getter for: Lcom/example/m6wmr/IntegralExchangeGift2;->beans:Ljava/util/List;
    invoke-static {v0}, Lcom/example/m6wmr/IntegralExchangeGift2;->access$4(Lcom/example/m6wmr/IntegralExchangeGift2;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    return v0
.end method

.method public getItem(I)Ljava/lang/Object;
    .locals 1
    .param p1, "arg0"    # I

    .prologue
    .line 683
    iget-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift2$MyAdapter;->this$0:Lcom/example/m6wmr/IntegralExchangeGift2;

    # getter for: Lcom/example/m6wmr/IntegralExchangeGift2;->beans:Ljava/util/List;
    invoke-static {v0}, Lcom/example/m6wmr/IntegralExchangeGift2;->access$4(Lcom/example/m6wmr/IntegralExchangeGift2;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    return-object v0
.end method

.method public getItemId(I)J
    .locals 2
    .param p1, "arg0"    # I

    .prologue
    .line 689
    int-to-long v0, p1

    return-wide v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 4
    .param p1, "arg0"    # I
    .param p2, "arg1"    # Landroid/view/View;
    .param p3, "arg2"    # Landroid/view/ViewGroup;

    .prologue
    const/4 v3, 0x0

    .line 697
    if-nez p2, :cond_0

    .line 698
    new-instance v0, Lcom/example/m6wmr/IntegralExchangeGift2$MyHolder;

    invoke-direct {v0, v3}, Lcom/example/m6wmr/IntegralExchangeGift2$MyHolder;-><init>(Lcom/example/m6wmr/IntegralExchangeGift2$MyHolder;)V

    .line 699
    .local v0, "holder":Lcom/example/m6wmr/IntegralExchangeGift2$MyHolder;
    iget-object v1, p0, Lcom/example/m6wmr/IntegralExchangeGift2$MyAdapter;->this$0:Lcom/example/m6wmr/IntegralExchangeGift2;

    # getter for: Lcom/example/m6wmr/IntegralExchangeGift2;->context:Landroid/content/Context;
    invoke-static {v1}, Lcom/example/m6wmr/IntegralExchangeGift2;->access$8(Lcom/example/m6wmr/IntegralExchangeGift2;)Landroid/content/Context;

    move-result-object v1

    const v2, 0x7f030062

    invoke-static {v1, v2, v3}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p2

    .line 701
    const v1, 0x7f0c0259

    invoke-virtual {p2, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, v0, Lcom/example/m6wmr/IntegralExchangeGift2$MyHolder;->tv_oldprice:Landroid/widget/TextView;

    .line 702
    const v1, 0x7f0c0258

    invoke-virtual {p2, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, v0, Lcom/example/m6wmr/IntegralExchangeGift2$MyHolder;->tv_gift_name:Landroid/widget/TextView;

    .line 703
    const v1, 0x7f0c025a

    invoke-virtual {p2, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, v0, Lcom/example/m6wmr/IntegralExchangeGift2$MyHolder;->tv_needintegral:Landroid/widget/TextView;

    .line 704
    const v1, 0x7f0c0257

    invoke-virtual {p2, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    iput-object v1, v0, Lcom/example/m6wmr/IntegralExchangeGift2$MyHolder;->im_gift:Landroid/widget/ImageView;

    .line 705
    const v1, 0x7f0c025b

    invoke-virtual {p2, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, v0, Lcom/example/m6wmr/IntegralExchangeGift2$MyHolder;->tv_go_exchange:Landroid/widget/TextView;

    .line 706
    invoke-virtual {p2, v0}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    .line 713
    :goto_0
    iget-object v2, v0, Lcom/example/m6wmr/IntegralExchangeGift2$MyHolder;->tv_gift_name:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/example/m6wmr/IntegralExchangeGift2$MyAdapter;->this$0:Lcom/example/m6wmr/IntegralExchangeGift2;

    # getter for: Lcom/example/m6wmr/IntegralExchangeGift2;->beans:Ljava/util/List;
    invoke-static {v1}, Lcom/example/m6wmr/IntegralExchangeGift2;->access$4(Lcom/example/m6wmr/IntegralExchangeGift2;)Ljava/util/List;

    move-result-object v1

    invoke-interface {v1, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lbean/IntegralExchangeBean;

    invoke-virtual {v1}, Lbean/IntegralExchangeBean;->getTitle()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v2, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 714
    iget-object v2, v0, Lcom/example/m6wmr/IntegralExchangeGift2$MyHolder;->tv_needintegral:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/example/m6wmr/IntegralExchangeGift2$MyAdapter;->this$0:Lcom/example/m6wmr/IntegralExchangeGift2;

    # getter for: Lcom/example/m6wmr/IntegralExchangeGift2;->beans:Ljava/util/List;
    invoke-static {v1}, Lcom/example/m6wmr/IntegralExchangeGift2;->access$4(Lcom/example/m6wmr/IntegralExchangeGift2;)Ljava/util/List;

    move-result-object v1

    invoke-interface {v1, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lbean/IntegralExchangeBean;

    invoke-virtual {v1}, Lbean/IntegralExchangeBean;->getScore()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v2, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 715
    iget-object v2, v0, Lcom/example/m6wmr/IntegralExchangeGift2$MyHolder;->tv_oldprice:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/example/m6wmr/IntegralExchangeGift2$MyAdapter;->this$0:Lcom/example/m6wmr/IntegralExchangeGift2;

    # getter for: Lcom/example/m6wmr/IntegralExchangeGift2;->beans:Ljava/util/List;
    invoke-static {v1}, Lcom/example/m6wmr/IntegralExchangeGift2;->access$4(Lcom/example/m6wmr/IntegralExchangeGift2;)Ljava/util/List;

    move-result-object v1

    invoke-interface {v1, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lbean/IntegralExchangeBean;

    invoke-virtual {v1}, Lbean/IntegralExchangeBean;->getStock()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v2, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 718
    iget-object v1, p0, Lcom/example/m6wmr/IntegralExchangeGift2$MyAdapter;->this$0:Lcom/example/m6wmr/IntegralExchangeGift2;

    # getter for: Lcom/example/m6wmr/IntegralExchangeGift2;->imageLoader:LPlugclass/ImageLoader;
    invoke-static {v1}, Lcom/example/m6wmr/IntegralExchangeGift2;->access$9(Lcom/example/m6wmr/IntegralExchangeGift2;)LPlugclass/ImageLoader;

    move-result-object v2

    iget-object v1, p0, Lcom/example/m6wmr/IntegralExchangeGift2$MyAdapter;->this$0:Lcom/example/m6wmr/IntegralExchangeGift2;

    # getter for: Lcom/example/m6wmr/IntegralExchangeGift2;->beans:Ljava/util/List;
    invoke-static {v1}, Lcom/example/m6wmr/IntegralExchangeGift2;->access$4(Lcom/example/m6wmr/IntegralExchangeGift2;)Ljava/util/List;

    move-result-object v1

    invoke-interface {v1, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lbean/IntegralExchangeBean;

    invoke-virtual {v1}, Lbean/IntegralExchangeBean;->getImg()Ljava/lang/String;

    move-result-object v1

    iget-object v3, v0, Lcom/example/m6wmr/IntegralExchangeGift2$MyHolder;->im_gift:Landroid/widget/ImageView;

    invoke-virtual {v2, v1, v3}, LPlugclass/ImageLoader;->DisplayImage(Ljava/lang/String;Landroid/widget/ImageView;)V

    .line 719
    iget-object v1, p0, Lcom/example/m6wmr/IntegralExchangeGift2$MyAdapter;->this$0:Lcom/example/m6wmr/IntegralExchangeGift2;

    # getter for: Lcom/example/m6wmr/IntegralExchangeGift2;->beans:Ljava/util/List;
    invoke-static {v1}, Lcom/example/m6wmr/IntegralExchangeGift2;->access$4(Lcom/example/m6wmr/IntegralExchangeGift2;)Ljava/util/List;

    move-result-object v1

    invoke-interface {v1, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lbean/IntegralExchangeBean;

    invoke-virtual {v1}, Lbean/IntegralExchangeBean;->getStock()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v1

    if-gtz v1, :cond_1

    .line 720
    iget-object v1, v0, Lcom/example/m6wmr/IntegralExchangeGift2$MyHolder;->tv_go_exchange:Landroid/widget/TextView;

    const-string v2, "\u5df2\u5151\u5b8c"

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 721
    iget-object v1, v0, Lcom/example/m6wmr/IntegralExchangeGift2$MyHolder;->tv_go_exchange:Landroid/widget/TextView;

    iget-object v2, p0, Lcom/example/m6wmr/IntegralExchangeGift2$MyAdapter;->this$0:Lcom/example/m6wmr/IntegralExchangeGift2;

    # getter for: Lcom/example/m6wmr/IntegralExchangeGift2;->context:Landroid/content/Context;
    invoke-static {v2}, Lcom/example/m6wmr/IntegralExchangeGift2;->access$8(Lcom/example/m6wmr/IntegralExchangeGift2;)Landroid/content/Context;

    move-result-object v2

    invoke-virtual {v2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f02009c

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 722
    iget-object v1, v0, Lcom/example/m6wmr/IntegralExchangeGift2$MyHolder;->tv_go_exchange:Landroid/widget/TextView;

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setFocusable(Z)V

    .line 763
    :goto_1
    return-object p2

    .line 708
    .end local v0    # "holder":Lcom/example/m6wmr/IntegralExchangeGift2$MyHolder;
    :cond_0
    invoke-virtual {p2}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/example/m6wmr/IntegralExchangeGift2$MyHolder;

    .restart local v0    # "holder":Lcom/example/m6wmr/IntegralExchangeGift2$MyHolder;
    goto/16 :goto_0

    .line 724
    :cond_1
    iget-object v1, v0, Lcom/example/m6wmr/IntegralExchangeGift2$MyHolder;->tv_go_exchange:Landroid/widget/TextView;

    const-string v2, "\u6211\u8981\u5151\u6362"

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 725
    iget-object v1, v0, Lcom/example/m6wmr/IntegralExchangeGift2$MyHolder;->tv_go_exchange:Landroid/widget/TextView;

    iget-object v2, p0, Lcom/example/m6wmr/IntegralExchangeGift2$MyAdapter;->this$0:Lcom/example/m6wmr/IntegralExchangeGift2;

    # getter for: Lcom/example/m6wmr/IntegralExchangeGift2;->context:Landroid/content/Context;
    invoke-static {v2}, Lcom/example/m6wmr/IntegralExchangeGift2;->access$8(Lcom/example/m6wmr/IntegralExchangeGift2;)Landroid/content/Context;

    move-result-object v2

    invoke-virtual {v2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f020096

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 726
    iget-object v1, v0, Lcom/example/m6wmr/IntegralExchangeGift2$MyHolder;->tv_go_exchange:Landroid/widget/TextView;

    const/4 v2, 0x1

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setFocusable(Z)V

    .line 727
    iget-object v1, v0, Lcom/example/m6wmr/IntegralExchangeGift2$MyHolder;->tv_go_exchange:Landroid/widget/TextView;

    invoke-virtual {v1, p1}, Landroid/widget/TextView;->setId(I)V

    .line 728
    iget-object v1, v0, Lcom/example/m6wmr/IntegralExchangeGift2$MyHolder;->tv_go_exchange:Landroid/widget/TextView;

    new-instance v2, Lcom/example/m6wmr/IntegralExchangeGift2$MyAdapter$1;

    invoke-direct {v2, p0}, Lcom/example/m6wmr/IntegralExchangeGift2$MyAdapter$1;-><init>(Lcom/example/m6wmr/IntegralExchangeGift2$MyAdapter;)V

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 741
    iget-object v1, v0, Lcom/example/m6wmr/IntegralExchangeGift2$MyHolder;->im_gift:Landroid/widget/ImageView;

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setTag(Ljava/lang/Object;)V

    .line 742
    iget-object v1, v0, Lcom/example/m6wmr/IntegralExchangeGift2$MyHolder;->im_gift:Landroid/widget/ImageView;

    new-instance v2, Lcom/example/m6wmr/IntegralExchangeGift2$MyAdapter$2;

    invoke-direct {v2, p0}, Lcom/example/m6wmr/IntegralExchangeGift2$MyAdapter$2;-><init>(Lcom/example/m6wmr/IntegralExchangeGift2$MyAdapter;)V

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    goto :goto_1
.end method
